package com.pojoVO;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Date;

/**
 * Created by Administrator on 2020/4/10 0010.
 */
@Document("commentInfoVo")
public class CommentInfoVo implements Serializable {
    @Id
    private String commentId;
    private Integer userId;
    private Integer groupId;
    private Integer star;
    private String commentContext;
    private Date createtime;
    private String userName;
    private Long orderNum;
    private Float avPrice;
    private String[] imgList;

    private Integer replyUserId;
    private String replyUserName;
    private Integer likeNum;
    private Integer replynum;
    private String parentId;
    private Byte status;
    public CommentInfoVo() {
    }

    public CommentInfoVo(String commentId, Integer userId, Integer groupId, Integer star, String commentContext, Date createtime, String userName, Long orderNum, Float avPrice, String[] imgList, Integer likeNum, Integer replynum, String parentId, Byte status) {
        this.commentId = commentId;
        this.userId = userId;
        this.groupId = groupId;
        this.star = star;
        this.commentContext = commentContext;
        this.createtime = createtime;
        this.userName = userName;
        this.orderNum = orderNum;
        this.avPrice = avPrice;
        this.imgList = imgList;
        this.likeNum = likeNum;
        this.replynum = replynum;
        this.parentId = parentId;
        this.status = status;
    }

    public CommentInfoVo(String commentId, Integer userId, Integer groupId, Integer star, String commentContext, Date createtime, String userName, Long orderNum, Float avPrice, String[] imgList, Integer replyUserId, String replyUserName, Integer likeNum, Integer replynum, String parentId, Byte status) {
        this.commentId = commentId;
        this.userId = userId;
        this.groupId = groupId;
        this.star = star;
        this.commentContext = commentContext;
        this.createtime = createtime;
        this.userName = userName;
        this.orderNum = orderNum;
        this.avPrice = avPrice;
        this.imgList = imgList;
        this.replyUserId = replyUserId;
        this.replyUserName = replyUserName;
        this.likeNum = likeNum;
        this.replynum = replynum;
        this.parentId = parentId;
        this.status = status;
    }

    public String getCommentId() {
        return commentId;
    }

    public void setCommentId(String commentId) {
        this.commentId = commentId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public Integer getStar() {
        return star;
    }

    public void setStar(Integer star) {
        this.star = star;
    }

    public String getCommentContext() {
        return commentContext;
    }

    public void setCommentContext(String commentContext) {
        this.commentContext = commentContext;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Long getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Long orderNum) {
        this.orderNum = orderNum;
    }

    public Float getAvPrice() {
        return avPrice;
    }

    public void setAvPrice(Float avPrice) {
        this.avPrice = avPrice;
    }

    public String[] getImgList() {
        return imgList;
    }

    public void setImgList(String[] imgList) {
        this.imgList = imgList;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Integer getLikeNum() {
        return likeNum;
    }

    public void setLikeNum(Integer likeNum) {
        this.likeNum = likeNum;
    }

    public Integer getReplynum() {
        return replynum;
    }

    public void setReplynum(Integer replynum) {
        this.replynum = replynum;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public Integer getReplyUserId() {
        return replyUserId;
    }

    public void setReplyUserId(Integer replyUserId) {
        this.replyUserId = replyUserId;
    }

    public String getReplyUserName() {
        return replyUserName;
    }

    public void setReplyUserName(String replyUserName) {
        this.replyUserName = replyUserName;
    }

    @Override
    public String toString() {
        return "CommentInfoVo{" +
                "commentId='" + commentId + '\'' +
                ", userId=" + userId +
                ", groupId=" + groupId +
                ", star=" + star +
                ", commentContext='" + commentContext + '\'' +
                ", createtime=" + createtime +
                ", userName='" + userName + '\'' +
                ", orderNum=" + orderNum +
                ", avPrice=" + avPrice +
                ", imgList=" + Arrays.toString(imgList) +
                ", replyUserId=" + replyUserId +
                ", replyUserName='" + replyUserName + '\'' +
                ", likeNum=" + likeNum +
                ", replynum=" + replynum +
                ", parentId='" + parentId + '\'' +
                ", status=" + status +
                '}';
    }
}
